<?php
include("./connect_tool.php");
$sql = "SHOW TABLES;";
$result = $conn->query($sql);
$data = array();
if ($result->num_rows > 0) {
    while ($row = $result->fetch_assoc()) {
        array_push($data, $row["Tables_in_$dbname"]);
    }
}
echo json_encode($data);
?>
